package com.xdb.sqlparser.ast.statement;

import com.xdb.sqlparser.ast.SQLExpr;
import com.xdb.sqlparser.ast.AbstractSQLStatementImpl;
import com.xdb.sqlparser.visitor.SQLAstVisitor;

public class SQLSavePointStatement extends AbstractSQLStatementImpl {

	private SQLExpr name;

	public SQLSavePointStatement() {

	}

	public SQLSavePointStatement(String dbType) {
		super(dbType);
	}

	public SQLExpr getName() {
		return name;
	}

	public void setName(SQLExpr name) {
		this.name = name;
	}

	@Override
	protected void accept0(SQLAstVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, name);
		}
		visitor.endVisit(this);
	}
}
